<template>
    <div>正在回调</div>
</template>
  
<script>
        
    export default {
        name: 'call',
        data() {
            return {

            }
        },
        created() {

        },
        mounted() {
            let query = this.$route.query;
            let code = query.code;
            this.doLogin(code);
        },
        methods: {
            doLogin(code) {
                let loginForm = {'platformType': 2, 'code': code, 'username': '', 'password': ''}
                this.$store.dispatch('Login', loginForm).then(() => {
                    this.$router.push({path: '/'})
                }).catch(() => {

                })
            }
        }
    }
</script>
  <style scoped>
  
  </style>
  